package com.weibo4j.api.req.status;

import com.weibo4j.api.WeiboRequest;
import com.weibo4j.api.annotation.Param;
import com.weibo4j.api.response.status.StatusMidGetResponse;
import com.weibo4j.api.util.RequestType;

public class StatusMidGetRequest extends WeiboRequest<StatusMidGetResponse> {

    private Long   id;
    
    private Integer type;//获取类型，1：微博、2：评论、3：私信，默认为1。
    
    private Integer isBatch;//是否使用批量模式，0：否、1：是，默认为0。

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Param("is_batch")
    public Integer getIsBatch() {
        return isBatch;
    }

    public void setIsBatch(Integer isBatch) {
        this.isBatch = isBatch;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String baseUrl() {
        return "https://api.weibo.com/2/statuses/querymid.json";
    }

    @Override
    public Class<StatusMidGetResponse> responseType() {
        return StatusMidGetResponse.class;
    }

    @Override
    public RequestType requestType() {
        return RequestType.GET;
    }

}
